home *** CD-ROM | disk | FTP | other *** search
- Path: URANUS.YZIT.EDU.TW!s814128
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Newsgroups: comp.lang.rexx
- X-Mailer: PMMail v1.1 UNREGISTERED SHAREWARE
- Message-ID: <9601142037.AA25262@uranus.yzit.edu.tw>
- Date: Mon, 15 Jan 1996 04:43:57 EST
- Sender: REXX Programming discussion list <REXXLIST@uga.cc.uga.edu>
- From: Yi-yih TsayTHREE <s814128@URANUS.YZIT.EDU.TW>
- Subject: REXX and CGI
-
- Hi. all.
-
- I am using REXX/IMC to write CGI funtion.
- Now, I have a question. When I write the html file as follows.
-
- =================
- ..........
- <FORM ACTION="http://XXX/test.cmd" method=post >
- <input ..... ">
- ..
- </FORM>
- =================
-
- And test.cmd is shown as follows.
-
- =================
- ...
- length = GETENV("CONTENT-LENGTH")
- buffer = charin(,1,length)
- say "length = " length
- say "buffer = " buffer
- ....
- =================
-
- But when I run the test.cmd , it always show
-
- length = XX (xx is right number)
- buffer = (NOTHING!!)
-
- In perl, I know I can use [ read(STDIN,$BUFFER,$ENV{'CONTENT_LENGTH'}) ]
- to store the content in BUFFER.
-
- But ,how can I make it in REXX/IMC ?
- Am I doing something wrong?
-
- Any suggestion is appreciated .
-
- PS1. I can use to "METHOD=GET" to get the content, but it's not a good
- idea.
- PS2. My WEB server is based on Linux using NCSA HTTPD.
-
-
- ---
- THREE YZCNPA (YuanZe Insitute of Technology Campus Network Promote Assosiation )
- [ TEAM-OS2]
- EMAIL:s814128@moon.yzit.edu.tw
- ftp://ftp-cnpa.yzit.edu.tw/OS2
- http://ftp-cnpa.yzit.edu.tw
-